package com.clouddisk.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user-service")
public interface UserFeignClient {

    /**
     * 获取用户存储空间限制
     *
     * @param userId 用户ID
     * @return 存储空间限制(字节)
     */
    @GetMapping("/user/storage/limit/{userId}")
    Long getUserStorageLimit(@PathVariable("userId") Long userId);
} 